using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace BardsTaleViewer {
  public class Anims_Atari : IAnims {
    public List<IAnim> _anims;

    public Anims_Atari (byte [] dump, ref int offset, int pictureIndex) {
      _anims = new List<IAnim> ();
      int animIndex = 0;
      while (offset < dump.Length) {
        _anims.Add (new Anim_Atari (dump, ref offset, pictureIndex, animIndex));
        animIndex++;
      }
    }

    public void CreateBitmaps (Bitmap bitmap, object paletteBase, byte [] data) {
      foreach (Anim_Atari anim in _anims) {
        anim.CreateBitmaps (bitmap, paletteBase, data.Extract (0));
      }
    }

    public List<IAnim> Anims {
      get {
        return (_anims);
      }
    }
  }
}
